package com.xw.db137.service.impl;

import com.xw.db137.common.R;
import com.xw.db137.entity.Role;
import com.xw.db137.mapper.RoleMapper;
import com.xw.db137.service.RoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
  * @Author: xw
  * @CreateTime: 2024/12/24
  * @Description: 用户
  * @Version: 1.0
  */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public List<Role> selectRoleByUserId(int userId) {
        List<Role> rolelist = this.baseMapper.selectRoleByUserId(userId);
        return rolelist;
    }
}
